
from typing import Optional
from sqlmodel import Field
from models.driver_model import DriverBase


class DriverCreate(DriverBase):
    first_name: str = Field(default=...,max_length=30,title="姓")
    last_name: str = Field(default=...,max_length=30,title="名")

class DriverUpdate(DriverBase):
    ...

class DriverPublic(DriverBase):
    id:int
    full_name:str
    user_id:Optional[int]
